<!DOCTYPE html>
<html lang="zh-hans">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
</head>
<body>
    <h2>注册</h2>
    <form method="post">
        {% csrf_token %}
        <label for="username">用户名:</label>
        <input type="text" id="username" name="username" required><br>
        <label for="password">密码:</label>
        <input type="password" id="password" name="password" required><br>
        <label for="nickname">昵称:</label>
        <input type="text" id="nickname" name="nickname"><br>
        <button type="submit">注册</button>
    </form>
    <p>已有账号? <a href="{% url 'login' %}">登录</a></p>
</body>
</html>
